package run.halo.app.repository;

import run.halo.app.model.entity.PostComment;
import run.halo.app.repository.base.BaseCommentRepository;

/**
 * PostComment repository.
 *
 * @author johnniang
 * @date 3/21/19
 */
public interface PostCommentRepository extends BaseCommentRepository<PostComment> {

//    @Query("select new run.halo.app.model.projection.CommentCountProjection(count(comment.id), comment.postId) from PostComment comment where comment.postId in ?1 group by comment.postId")
//    @NonNull
//    @Override
//    List<CommentCountProjection> countByPostIds(@NonNull Iterable<Integer> postIds);

}
